﻿<FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              FontFamily="Arial">
    <!--<Table BorderBrush="Black" BorderThickness="1">
        <Table.Columns>
            <TableColumn />
            <TableColumn />
            <TableColumn />
        </Table.Columns>
        <TableRowGroup>
            <TableRow>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 1 Column 1</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 1 Column 2</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 1 Column 3</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 2 Column 1</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 2 Column 2</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 2 Column 3</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>
    </Table>

    <Table BorderBrush="Black" BorderThickness="1" CellSpacing="0">
        <Table.Columns>
            <TableColumn />
            <TableColumn />
            <TableColumn />
        </Table.Columns>
        <TableRowGroup>
            <TableRow>
                <TableCell Background="Yellow">
                    <Paragraph>Some very big text that will push the other two columns over</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>A</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>B</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell Background="Green">
                    <Paragraph>C</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>D</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>E</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>
    </Table>

    <Table Background="Yellow">
        <Table.Columns>
            <TableColumn/>
            <TableColumn Background="LightGreen"/>
            <TableColumn/>
        </Table.Columns>
        <TableRowGroup>
            <TableRow>
                <TableCell/>
                <TableCell/>
                <TableCell/>
            </TableRow>
        </TableRowGroup>
        <TableRowGroup Background="Tan">
            <TableRow>
                <TableCell/>
                <TableCell/>
                <TableCell/>
            </TableRow>
            <TableRow Background="LightBlue">
                <TableCell/>
                <TableCell Background="Purple"/>
                <TableCell/>
            </TableRow>
            <TableRow>
                <TableCell/>
                <TableCell/>
                <TableCell/>
            </TableRow>
        </TableRowGroup>
        <TableRowGroup>
            <TableRow>
                <TableCell/>
                <TableCell/>
                <TableCell/>
            </TableRow>
        </TableRowGroup>
    </Table>

    <Table>
        <Table.Columns>
            <TableColumn/>
            <TableColumn/>
            <TableColumn/>
        </Table.Columns>

        <TableRowGroup>
            <TableRow>
                <TableCell ColumnSpan="2" Background="Red">
                    <Paragraph>This cell spans 2 columns.</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>Cell 3,1</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell>
                    <Paragraph>Cell 2,2</Paragraph>
                </TableCell>
                <TableCell RowSpan="2" Background="Green">
                    <Paragraph>This cell spans 2 rows.</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell>
                    <Paragraph>Cell 1,3</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>Cell 3,3</Paragraph>
                </TableCell>
            </TableRow>

        </TableRowGroup>
    </Table>



    <Table BreakPageBefore="True">
        <Table.Columns>
            <TableColumn Width="*" />
            <TableColumn Width="3*" />
            <TableColumn Width="*"/>
        </Table.Columns>
        <TableRowGroup>
            <TableRow>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 1 Column 1</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 1 Column 2</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 1 Column 3</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 2 Column 1</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 2 Column 2</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 2 Column 3</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>
    </Table>-->

    <Table>
        <Table.Columns>
            <TableColumn Width="Auto" />
            <TableColumn Width="*" />
            <TableColumn Width="Auto"/>
        </Table.Columns>
        <TableRowGroup>
            <TableRow>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 1 Column 1</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 1 Column 2</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 1 Column 3</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 2 Column 1</Paragraph>
                </TableCell>
                <TableCell Background="Yellow">
                    <Paragraph>Cell at Row 2 Column 2</Paragraph>
                </TableCell>
                <TableCell Background="Green">
                    <Paragraph>Cell at Row 2 Column 3</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>
    </Table>


</FlowDocument>
